package cn.tedu.orderservice.feign;

import cn.tedu.charging.common.pojo.dto.GunStatusParam;
import cn.tedu.charging.common.pojo.vo.StationInfoVO;
import cn.tedu.charging.common.response.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("deviceservice")
public interface DeviceClient {
    @GetMapping("/v1/device/station/info/{gunId}")
    JsonResult<StationInfoVO> getStationInfo (@PathVariable("gunId") Long gunId);

    @PutMapping("/v1/device/station/status/update")
    JsonResult updateGunStatus(GunStatusParam gunStatusParam);
}
